#include<stdio.h>
#include<unistd.h>
#include<sys/types.h>

int main()
{
    printf("I am parent process: pid: %d\n",getpid());

    pid_t ret = fork();
    //变成两个进程，一个父进程，一个子进程
    
    printf("ret:%d, pid:%d,ppid:%d\n",ret,getpid(),getppid());

    sleep(1);

    return 0;
}
